package cn.edu.sjtu.se.dslab.dao.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import cn.edu.sjtu.se.dslab.component.design.DesignPatternProperty;
import cn.edu.sjtu.se.dslab.dao.IBaseDao;
import cn.edu.sjtu.se.dslab.dao.IDesignPatternPropertyDao;

/**
 * 
 * @author longshaohang
 * 
 */
@Repository("designPatternPropertyDao")
public class DesignPatternPropertyDaoImpl implements IDesignPatternPropertyDao {

	@Resource(name = "baseDao")
	private IBaseDao<DesignPatternProperty> baseDao;

	@Override
	public void save(DesignPatternProperty property) {
		baseDao.save(property);
	}

	@Override
	public DesignPatternProperty update(DesignPatternProperty property) {
		return baseDao.update(property);
	}

	@Override
	public DesignPatternProperty queryById(long id) {
		return baseDao.queryById(DesignPatternProperty.class, id);
	}

}
